<table class="list">
  <tr>
    <th width="4%">序号</th>
    <th width="6%">单号</th>
    <th width="8%">门店名称</th>
    <th width="12%">销售日期</th>
    <th width="8%">销售类型</th>
    <th width="10%">合同号</th>
    <th width="8%">金额</th>
    <th width="8%">付款方式</th>
    <th width="8%">销售员1</th>
    <th width="8%">销售员2</th>
    <th width="8%">收银员</th>
  </tr>
  <#if list??><#list list as c>
  <tr<#if c_index%2==1> class="line2"<#else> class="line1"</#if>>
    <td class="no">${c_index+1}</td>
    <td>${c.autoId!}</td>
    <td><@value type="shopName" key="${c.shopCode!}"/></td>
    <td>${c.saleDate?string("yyyy-MM-dd HH:mm")!}</td>
    <td><@value type="paySaleType" key="${c.saleType!}"/></td>
    <td>${c.contractCode!}</td>
    <td class="money">${c.amount!}</td>
    <td><@value type="payType" key="${c.payType!}"/></td>
    <td><@value type="salesName" key="${c.salesCode!}"/></td>
    <td><@value type="salesName" key="${c.salesCode2!}"/></td>
    <td><@value type="userName" key="${c.cashier!}"/></td>
  </tr>
  </#list></#if>
  <tr class="sum">
    <td class="no"></td>
    <td>合计</td>
    <td colspan="4"></td>
    <td class="money">${sum!}</td>
    <td colspan="4"></td>
  </tr>
</table>

<table class="list" style="width:300px; margin-top:10px;">
  <tr>
    <th width="15%">序号</th>
    <th width="50%">付款方式</th>
    <th width="35%">金额</th>
  </tr>
  <#if payTypeList??><#list payTypeList as c>
  <tr<#if c_index%2==1> class="line2"<#else> class="line1"</#if>>
    <td class="no">${c_index+1}</td>
    <td><@value type="payType" key="${c.payType!}"/></td>
    <td class="money">${c.amount!}</td>
  </tr>
  </#list></#if>
  <tr class="sum">
    <td class="no"></td>
    <td>合计</td>
    <td class="money">${payTypeSum!}</td>
  </tr>
</table>

<table class="list" style="width:300px; margin-top:10px;">
  <tr>
    <th width="15%">序号</th>
    <th width="50%">销售类型</th>
    <th width="35%">金额</th>
  </tr>
  <#if saleTypeList??><#list saleTypeList as c>
  <tr<#if c_index%2==1> class="line2"<#else> class="line1"</#if>>
    <td class="no">${c_index+1}</td>
    <td><@value type="paySaleType" key="${c.saleType!}"/></td>
    <td class="money">${c.amount!}</td>
  </tr>
  </#list></#if>
  <tr class="sum">
    <td class="no"></td>
    <td>合计</td>
    <td class="money">${saleTypeSum!}</td>
  </tr>
</table>
